package com.zjuee.base.dto.common.company;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.zjuee.base.base.Converter;
import com.zjuee.base.bean.Pages;
import com.zjuee.base.model.common.company.CompanyLicense;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class CompanyLicenseDetailDto implements Converter<CompanyLicense,CompanyLicenseDetailDto> {
    Long id;

    Long bciId;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Pages page;
    @Override
    public void convertToDo(CompanyLicense companyLicense) {
        BeanUtils.copyProperties(this,companyLicense);
    }

    @Override
    public CompanyLicenseDetailDto convert(CompanyLicense companyLicense) {
        BeanUtils.copyProperties(companyLicense,this);
        return this;
    }
}
